# coding=utf-8

# 【返回码】
# 成功
RESPONSE_SUCCESS = 200
# 失败
RESPONSE_FAILED = 500
# 需要登录
RESPONSE_NEED_LOGIN = 600
# 参数错误
RESPONSE_PARAMS_ERROR = 700


# 【任务状态】
# 新建
TASK_STATUS_NEW = 101010
# 待审核(已提交)
TASK_STATUS_SUBMITTED = 101020
# 撤回
TASK_STATUS_CANCELED = 101030
# 审核通过
TASK_STATUS_AUDITED = 101040
# 驳回
TASK_STATUS_REJECTED = 101050


# 【操作类型】
# 新增
OPERATE_TYPE_NEW = 102010
# 修改
OPERATE_TYPE_MODIFY = 102020
# 删除
OPERATE_TYPE_DELETE = 102030


# 【检测状态】
# 正常
CHECK_STATUS_NORMAL = 103010
# 异常
CHECK_STATUS_ABNORMAL = 103020


# 【GEO层】
# 道路桥梁
GEO_LAYER_BRIDGE = 104010
# 建筑物
GEO_LAYER_BUILDING = 104020
# 涵洞
GEO_LAYER_CULVERT = 104030
# 减速带
GEO_LAYER_DECELERATION = 104040
# 道路标线
GEO_LAYER_DELINEATER = 104050
# 隔离栏
GEO_LAYER_GUARDBAR = 104060
# 照明设施
GEO_LAYER_ILLUMINATION = 104070
# 土地用途
GEO_LAYER_LANDUSE = 104080
# 道路中心线
GEO_LAYER_ROADLINE = 104090
# 道路面
GEO_LAYER_ROADPOLYGON = 104100
# 道路标志
GEO_LAYER_ROADSIGN = 104110
# 道路绿化
GEO_LAYER_TREELAWN = 104120
# 隧道
GEO_LAYER_TUNNEL = 104130
# 水域
GEO_LAYER_WATER = 104140


# 【GEO数据类型】
GEO_TYPE_GEOMETRY = 'GEOMETRY'
GEO_TYPE_POINT = 'POINT'
GEO_TYPE_LINESTRING = 'LINESTRING'
GEO_TYPE_POLYGON = 'POLYGON'
GEO_TYPE_MULTIPOINT = 'MULTIPOINT'
GEO_TYPE_MULTILINESTRING = 'MULTILINESTRING'
GEO_TYPE_MULTIPOLYGON = 'MULTIPOLYGON'
GEO_TYPE_GEOMETRYCOLLECTION = 'GEOMETRYCOLLECTION'
GEO_TYPE_CURVE = 'CURVE'

# 【GIS坐标系SRID】
# 墨卡托投影
GIS_SRID_WEBMERCATOR = 3857
# wgs84 GPS全球定位系统使用而建立的坐标系统
GIS_SRID_WGS84 = 4326
# 火星坐标系(国测局坐标系)
GIS_SRID_GCJ02 = -1   # 自定义为-1,它本身没有srid


# 【审核状态】
# 待审核
AUDIT_STATUS_NEW = 106010
# 审核通过
AUDIT_STATUS_AUDITED = 106020
# 审核驳回
AUDIT_STATUS_REJECTED = 106030


# 【同步物体库结果】
# 未同步
ASYNC_OBJ_NEW = 107010
# 同步钟
ASYNC_OBJ_ING = 107020
# 同步成功
ASYNC_OBJ_SUCCESSFUL = 107030
# 同步失败
ASYNC_OBJ_FAILED = 107040


